package com.wyzz.hr.pojo;

import java.util.Date;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.base.wf.AbstractWorkflow;
import com.wyzz.hr.pojo.base.BaseTremployeeplan;

public class Tremployeeplan extends BaseTremployeeplan {

	public Tremployeeplan() {
	}

	public Tremployeeplan(String trpId) {
		super(trpId);
	}

	public Tremployeeplan(String trpId, Integer trpNo,
			Department trpTraineeDept, Location trpTraineeLocation,
			Employee trpCreateBy, Employee trpTraineeNo, Trcourseplan trpTrcp,
			Employee trpLastChangeBy, Integer trpStatus, Date trpCreateTime,
			Date trpLastChangeTime, String trpNextApprover,
			String trpSecurityNo, String trpScore, String trpMemo) {
		super(trpId, trpNo, trpTraineeDept, trpTraineeLocation, trpCreateBy,
				trpTraineeNo, trpTrcp, trpLastChangeBy, trpStatus,
				trpCreateTime, trpLastChangeTime, trpNextApprover,
				trpSecurityNo, trpScore, trpMemo);
	}

	public AbstractWorkflow getWorkflow() {
		return workflow;
	}

	public void setWorkflow(AbstractWorkflow workflow) {
		this.workflow = workflow;
	}

	public String getTrpStatusMean() {
		return trpStatusMean;
	}

	public void setTrpStatus(Integer trpStatus) {
		super.setTrpStatus(trpStatus);
		if (trpStatus == null)
			trpStatusMean = null;
		else
			trpStatusMean = ComonBeans.getParameterValue(PROP_TRP_STATUS,
					new String[] { trpStatus.toString() });
	}

	private static final long serialVersionUID = 1L;
	private AbstractWorkflow workflow;
	private String trpStatusMean;
}
